package com.netease.framework.b;

import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;

public class b extends e
{
  public static final int a = 0;
  public static final int b = 1;
  Vector c;
  a d;
  Object e;
  int f;
  int g;

  public b(a parama, Object paramObject, int paramInt1, int paramInt2)
  {
    super(-1);
    this.d = parama;
    this.e = paramObject;
    this.f = paramInt1;
    this.g = paramInt2;
  }

  public b(Vector paramVector, Object paramObject, int paramInt1, int paramInt2)
  {
    super(-1);
    this.c = paramVector;
    this.e = paramObject;
    this.f = paramInt1;
    this.g = paramInt2;
  }

  protected int a()
  {
    return this.g;
  }

  protected void a(int paramInt1, int paramInt2)
  {
    this.f = paramInt1;
    this.g = paramInt2;
  }

  public void a(int paramInt, Exception paramException)
  {
  }

  protected void a(Object paramObject)
  {
    a(paramObject, true);
  }

  protected void a(Object paramObject, boolean paramBoolean)
  {
    if ((paramBoolean) && (this.e != null) && ((this.e instanceof InputStream)));
    try
    {
      ((InputStream)this.e).close();
      label31: this.e = null;
      this.e = paramObject;
      return;
    }
    catch (IOException localIOException)
    {
      break label31;
    }
  }

  public boolean b()
  {
    if (this.f == 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public final void c()
  {
    f();
    if (g() != null)
    {
      if (this.c != null)
        break label91;
      this.d.h();
      if (this.d.o());
    }
    while (true)
    {
      try
      {
        if (this.f != 0)
          continue;
        this.d.a(this.g, this.e);
        a(null);
        return;
        this.d.b(this.g, this.e);
        continue;
      }
      catch (Exception localException2)
      {
        localException2.printStackTrace();
        continue;
      }
      label91: for (int i = 0; i < this.c.size(); i++)
      {
        a locala = (a)this.c.elementAt(i);
        if (locala == null)
          continue;
        locala.h();
        if (locala.o())
          continue;
        try
        {
          if (this.f == 0)
            locala.a(this.g, this.e);
          else
            locala.b(this.g, this.e);
        }
        catch (Exception localException1)
        {
          localException1.printStackTrace();
        }
      }
    }
  }

  protected Object d()
  {
    return this.e;
  }

  public void f()
  {
    if (this.e != null)
      if (!(this.e instanceof byte[]))
        break label41;
    for (byte[] arrayOfByte = (byte[])(byte[])this.e; ; arrayOfByte = com.netease.pris.a.e.b((InputStream)this.e))
    {
      a(new String(arrayOfByte));
      label41: 
      do
        return;
      while (!(this.e instanceof InputStream));
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.b.b
 * JD-Core Version:    0.6.0
 */